<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%= htmlWebpackPlugin.options.title %></title>
    <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0Beta&key=e4d3de24e6043b86b0039d7c85d727e8&plugin=AMap.DistrictSearch,AMap.Geocoder"></script>
    <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
   <style>
      body {
        width: 100vw;
        height: 100vh;
        padding: 0;
        margin: 0;
        font-size: 0.16rem;
      }
    </style>
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
        properly without JavaScript enabled. Please enable it to
        continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    ;(function(doc, win) {
      var docEl = doc.documentElement,
        resizeEvt =
          'orientationchange' in window ? 'orientationchange' : 'resize',
        recalc = function() {
          var clientWidth = docEl.clientWidth
          if (!clientWidth) return
          if (clientWidth >= 1920) {
            docEl.style.fontSize = '100px' //1rem  = 100px
          } else {
            docEl.style.fontSize = 100 * (clientWidth / 1920) + 'px'
          }
        }
      if (!doc.addEventListener) return
      win.addEventListener(resizeEvt, recalc, false)
      doc.addEventListener('DOMContentLoaded', recalc, false)
    })(document, window)
  </script>
</html>
